x = 0
def sayinfo(name,age):
    global x
    x += 1
    print(f'名字{name}，年龄{age}')
sayinfo('bob',16)
sayinfo('tom',21)
print(f'函数被调用{x}次')
